package com.ianswer.px.posts.entity;

/**
 * 返回给界面时使用
 * @author keygle
 *
 */
public class PostData {
	private long id;

	/**
	 * 博文的作者id
	 */
	private long userId;
	
	/**
	 * 博主昵称
	 */
	private String nickName;
	
	/**
	 * 头像
	 */
	private String avatar;
	
	/**
	 * 登录账号
	 */
	private String email;
	
	/**
	 * 博主身份
	 */
	private long userType;
	
	/**
	 * 博文的时间戳（秒，内部用的）
	 */
	private long createdAt;
	
	/**
	 * 博文的时间戳（中文，显示用的）
	 */
	private String createAtStr;
	
	/**
	 * 评论数
	 */
	private long comments;
	
	/**
	 * 转发数
	 */
	private long transferred;
	
	/**
	 * 转发的源博文实体
	 */
	private PostData tranPost;
	
	/**
	 * 博文内容
	 */
	private String content;
	
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public long getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(long createdAt) {
		this.createdAt = createdAt;
	}

	public String getCreateAtStr() {
		return createAtStr;
	}

	public void setCreateAtStr(String createAtStr) {
		this.createAtStr = createAtStr;
	}

	public long getComments() {
		return comments;
	}

	public void setComments(long comments) {
		this.comments = comments;
	}

	public long getTransferred() {
		return transferred;
	}

	public void setTransferred(long transferred) {
		this.transferred = transferred;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public long getUserType() {
		return userType;
	}

	public void setUserType(long userType) {
		this.userType = userType;
	}

	public PostData getTranPost() {
		return tranPost;
	}

	public void setTranPost(PostData tranPost) {
		this.tranPost = tranPost;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	
}
